from django.db import models


# Create your models here.
class BookInfo(models.Model):
    """ 图书模型 """

    btitle = models.CharField(max_length=20, verbose_name='图书标题')
    bread = models.IntegerField(default=0, verbose_name='阅读量')
    bcomment = models.IntegerField(default=0, verbose_name='评论量')
    is_delete = models.BooleanField(default=False, verbose_name='逻辑删除')

    def __str__(self):
        return self.btitle
